package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.entity.BaseEntity;
import com.leyou.item.dto.CategoryDTO;
import com.leyou.item.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryService extends IService<Category> {

    //根据分类id，查询商品分类
    CategoryDTO queryCategoryById(Long id);
    //根据分类id的集合，查询商品分类的集合
    List<CategoryDTO> queryCategoriesByIds(List<Long> ids);
    //根据父类目id，查询子类目的集合
    List<CategoryDTO> queryCategoriesByParentId(Long pid);
}
